home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wildcat Gold - The Optical BBS
/
Wildcat Gold - The Optical BBS (The Golden ROM Series)(Volume 4 Number 1)(The Digital Publishing Company)(1992).ISO
/
sdn
/
ca28_3a.sdn
/
BBS.SRC
< prev
next >
Wrap
Text File
|
1991-08-31
|
75KB
|
2,407 lines
; ----- COM-AND Scripted BBS mode
; Commenced: 03/18/88 R.McG
; Updated: 2/--/89 R.McG
; 10/--/89 R.McG (Allow blank lines, preserve lines to disc)
; Ver 1.1: 11/--/90 R.McG (Make BBSETUP utility script)
; -----------------------------------------------------------------------
; Goals:
; o Must autodetect caller's baud rate
; o Must work correctly for modems reporting true CD and otherwise.
;
; Functions:
; o ID/Passworded log-on (with registration)
; o Capabilities set by SYSOP
; o UP and DOWNLOADS
; o Mail and bulletins
; o Privileged access (Pathlist,CHDIR, DOS commands)
; -----------------------------------------------------------------------
; Usages:
; S0 ------> General scratch buffer
; S1 ------> ID;password during logon; ID after logon upper cased
; S2-S5 ---> scratch
; S6 ------> Logon time (used by Read_Comm to timeout)
; S7 ------> scratch
; S8 ------> Scratch buffer
; S9 ------> General read buffer
; S10-S18 -> Scratch buffers
; S19 -----> Is used to save default subdir within commands
; S20-S25 -> Default values from BBSDAT
; S20 -> port, speed
; S21 -> modem init we'll use for restart
; S22 -> BBS default subdir
; S23 -> BBS default files subdir
; S24 -> BBS default mail subdir
; S25 -> BBS default bulletin subdir
; S28 -----> DLDIR on entry
; S29 -----> subdirectory on entry
;
; N0 ------> # minutes allowed for call (set by logon)
; N10-N19 -> Generally scratch
; N97-N99 -> Generally scratch
;
; FLAG(0) -> ON if an error condition is being reported...
; Upon return from Read_Comm: ON -> timeout or disconn
; Upon return from Logon -> OFF -> Logon OK
; FLAG(1) -> After Logon, privileged access if ON
; FLAG(2) -> a CHDIR has been performed by a privileged user
; FLAG(3) -> There is a logged on caller (if true)
; -----------------------------------------------------------------------
;
LEGEND "Scripted BBS (1.1); initializing"
WOPEN 10,1 12,78 (default)
ATSAY 11,3 (default) "Initializing BBS.. "
;
; Set default values (in case BBSDAT does not exist)
;
S20 = "_PARM"(11:14)*","*"_PARM"(0:3) ; Port(4),speed(4)
S21 = "ATE0Q0V1X1S0=2 S7=30 S9=10^M" ; Standard MINIT for BBS
S22 = "\BBS" ; Set to our subdirectory
S23 = "\BBS\FILES" ; Set subdir for files
S24 = "\BBS\MAIL" ; Set subdir for mail
S25 = "\BBS\BULLETIN" ; Set subdir for bulletins
;
; Initialize COM related values (This is done here to allow BBSDAT
; ... edits to override these settings)
;
SET PARITY NONE ; BBS is fixed no parity
SET DATA 8 ; BBS is fixed 8 data bits
SET STOP 1 ; bbs is fixed 1 stop bit
SET MASK ON ; accept 7 or 8 bits
SET CR_IN CR_LF ; Display received c/rs as a cr/lf
SET ASCII UP_LF LF ; Send LFs
SET SOFTFLOW ON ; Allow XON/XOFF
SET ZMODEM AUTO OFF ; Automatic ZMODEM (user must say 'z')
SET ZMODEM RECOVER OFF ; No ZMODEM recovery
;
; Replace above values from BBSDAT, if that script exists
;
IF ISSC "BBSDAT"